#ifndef __TASKTHREADPOOL_H__
#define __TASKTHREADPOOL_H__

#include "cocos2d.h"
#include "../DataStructure/DataStruct.h"
#include "Thread.h"
#include "Task.h"

USING_NS_CC;

class TaskThreadPool : public CCObject
{
public:
	TaskThreadPool() {}
	~TaskThreadPool() {}
public:
	void AddTask(Task* task);
	void DoLoop(float elapsed);
private:
	CSList<Task*> mTask;
};

extern TaskThreadPool* GTask;

#endif